package com.oocl.euc.core.builder;

import com.oocl.euc.core.attachment.model.Attachment;
import com.oocl.euc.core.requestform.model.RequestPostmortemAttach;
import org.springframework.stereotype.Component;

@Component
public class RequestPostmortemAttachBuilder {

    private RequestPostmortemAttach requestPostmortemAttach;

    public RequestPostmortemAttachBuilder defaultBuilder() {

        requestPostmortemAttach = new RequestPostmortemAttach();
        requestPostmortemAttach.setDescription("Request Postmortem Attachment Desc");
        return this;
    }

    public RequestPostmortemAttachBuilder withAttachment(Attachment attachment){

        this.requestPostmortemAttach.setAttachment(attachment);
        return this;
    }

    public RequestPostmortemAttach create(){
        return this.requestPostmortemAttach;
    }
}
